﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcs.Web.DemandPlan
{
    public partial class Supermarket : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

            }
        }

        protected void btn_send_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request["id"]))
            {
                String dpid = Request["id"];

                Maticsoft.BLL.documentFlowInfo dm = new Maticsoft.BLL.documentFlowInfo();
                Maticsoft.Model.documentFlowInfo d = dm.GetModel(int.Parse(dpid));

                d.isDone = true;//更改整个流程状态为已完成
                d.isFlowDone = true;

                if (dm.Update(d))
                {
                    Maticsoft.Common.MessageBox.Show(this.Page, "发送成功！");
                }
            }
        }


    }
}